﻿@using BootstrapBlazor.Components
@using ThingsGateway.Razor
@namespace ThingsGateway.Upgrade


<div class="h-100">
    <DefaultTable TItem="UpdateZipFile"
                  AutoGenerateColumns="true"
                  ShowDefaultButtons=false
                  EditDialogSize="Size.Large"
                  AllowResizing="true"
                  IsFixedHeader=true
                  ShowAddButton="false"
                  ShowRefresh="true"
                  ShowEmpty="true"
                  ShowSearch="false"
                  IsMultipleSelect=false
                  ShowExtendEditButton=false
                  ShowExtendDeleteButton=false
                  ShowExtendButtons=true
                  ShowDeleteButton="false"
                  ShowEditButton="false"
                  ShowAdvancedSearch=false
                  OnQueryAsync="OnQueryAsync">



        @*         <TableToolbarTemplate>
            <TableToolbarButton TItem="UpdateZipFile" Color="Color.Info" Icon="fa fa-plus" Text="test"
                                OnClickCallback="a=>ShowInfo(a.FirstOrDefault())" />

        </TableToolbarTemplate> *@

        <RowButtonTemplate>
            <TableCellButton Size="Size.ExtraSmall" Color="Color.Success" Icon="fa-solid fa-people-roof" Text="@GatewayLocalizer["Info"]" OnClick="() => ShowInfo(context)" />
        </RowButtonTemplate>

    </DefaultTable>
</div>
